<include file="Public:header" />

<style>
@media (min-width: 50px){
	     .nav-justified>li{
		display: table-cell;
		width: 1%;
	}
	   }
.panel-body {
    padding: 5px 5px;
}
.panel{margin-bottom:0px;}
.nav-justified>li>a{margin-bottom:0; border-radius:0;}
</style>
    
    <div class="goods" style="padding:10px 5px;">
    <div class="panel panel-info">
      <div class="panel-heading">
        <h3 class="panel-title">订单详情</h3>
      </div>
      
      <div class="panel-body" style="background:#fff;">
        <ul class="list-group">
            <li class="list-group-item">
                <p class="text-left">订单状态:
                
                <if condition="$order.status eq 0"><strong style="color:red;">退货</strong><elseif condition="$order.status eq 1"/><strong style="color:red;">待付款</strong><elseif condition="$order.status eq 2"/><strong>已付款</strong><elseif condition="$order.status eq 3"/><strong>已发货</strong><else /><strong>已完成</strong></if>
                
                </p>
                <p class="text-left">订单编号：{$order.ordernumber}</p>
                <p class="text-left">订单金额：{$order.total}</p>
                <p class="text-left">下单时间: {$order.create_time|date='Y-m-d',###}</p>
            </li>
            <li class="list-group-item">
                <p class="text-left">收货人姓名：{$order.yourname}</p>
                <p class="text-left">详细地址：{$order.address}</p>
                <p class="text-left">电话号码：{$order.tel}</p>
            </li>
         </ul>
      </div>
      
    </div>
    
    </div>
  
    <div class="goods" style="padding:0px 5px;">
      <div class="panel panel-info">
        <div class="panel-heading">商品列表:
        </div>
        
        <volist name="goods" id="vo">
        <form action="{:U('confirmgoods')}" method="post"> 
         <div class="panel-body" style="background:#fff;">
         
          <volist name="vo.product" id="pvo">
          <input type="checkbox" name="sale[]" id="product_id{$pvo.sale_id}" checked="checked"  value="{$pvo.sale_id}" style="display:none;">
          <input type="hidden" name="ordernumber" value="{$order.ordernumber}" >
              <div class="row">
                <div class="col-xs-4" style="text-align:left"><a href="{:getArtLink($pvo['id'],1)}"><img src="__PUBLIC__{$pvo.img_url}" width="80" height="80"></a>
                </div>
                <div class="col-xs-8"><span style="color:rgba(59,53,53,1.00); font-family:'微软雅黑'; ">{$pvo.title}</span></div>
                <div><span style="color:rgba(189,174,174,1.00); font-family:'微软雅黑';">总价&nbsp;&nbsp;</span><strong style="color:rgba(205,120,121,1.00)">{$pvo.total}</strong>
            <p><?php if(!empty($pvo['attrmes'][0])){?>
             <span style="color:rgba(203,189,190,1.00)">规格:&nbsp;&nbsp;</span>
             <?php foreach($pvo['attrmes'] as $vos){?>
              <span><?php echo $vos ?>&nbsp;&nbsp;</span>
            <?php }?>
            <?php }?></p></div>
              </div>
              <div style=" float:right;">
        <!--申请售后 -->       
              <if condition="$order.shipping_status eq 1 or $order.shipping_status eq 2">
              
              <if condition="$pvo.confirm eq 1">
              <a href="{:U('selecttype',array('order_id'=>$order['id'],'goods_id'=>$pvo['id']))}"><button type="button" class="btn btn-danger">申请售后</button></a></if>
      
             </if>
     <!--申请售后结束 -->  
            
   <!--退款 --> 
   <if condition="$order.shipping_status eq 0 ">
                 
              <if condition="$pvo.confirm eq 0">
              
              <a href="{:U('returngoods',array('order_id'=>$order['id'],'goods_id'=>$pvo['id']))}"><button type="button" class="btn btn-danger">退款</button></a></if>
              
     </if> 
     
   <!--退款结束 -->         
              </div>
              <div style="clear:both;"></div>
              <hr>
          </volist> 
          <div class="row" style="padding:0px;">
            <div class="col-xs-3" style="text-align:left;">
            </div>
                       
            <div class="col-xs-9" style="text-align:right;">
            
            <if condition="$order.shipping_status eq 2 or $order.shipping_status eq 1 ">
            
            <a href="http://m.kuaidi100.com/result.jsp?nu={$vo.logistics_num}" style="display:block; margin-bottom:10px;"><button type="button" class="btn btn-default">查看物流</button></a>
             
             </if>
             
             <if condition="$order.shipping_status eq 2 or $order.shipping_status eq 1 ">
             
             <if condition="$vo.confirm eq 0">
             
             <a href="{:U('confirmgoods',array('sale_id'=>$vo['sale_id'],'goods'=>$vo))}">
            
             <i class="fa fa-history"></i>还剩{$vo['endtime']}天&nbsp;自动确认&nbsp;&nbsp;&nbsp;&nbsp;<button id="is_goods" type="submit" class="btn btn-success" onClick="return confirm('您确定已经收货？');">确认收货</button>
             </a>
             
            </if>
            
            </if>
            
            </div>
            
          </div>
          <hr>
      </div>
      </form>
     </volist>
    </div>
    </div>
    

<include file="Public:footer" />